var {sequelize} = require('./index')
const {initModels} = require(`./models/${process.env.PROJECT_MODELS_DIR}/init-models`);
sequelize.authenticate().then(async () => {
    console.log('database connection successful !')
}).catch(err => {
    console.error('Unable to connect to the database:', err)
})

module.exports = initModels(sequelize)
